Holds information about a sub entity, a renderable exposing the geometry. More...
Public Member Functions | |
| SubEntity () | |
| ~SubEntity () | |
| Entity * | getParentEntity () const |
| Mesh * | getMesh () const |
| BoundingBox * | getBounds () const |
| void | setParentEntity (Entity *ent) |
| void | setMesh (Mesh *mesh) |
| void | setDirtyNodeTransform (bool value) |
| void | meshUpdatedBounds () |
| virtual void | exportClassToTree (nkExport::Node *rootNode) override |
| virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
| Exportable () | |
| virtual | ~Exportable () |
Holds information about a sub entity, a renderable exposing the geometry.
| nkGraphics::SubEntity::SubEntity | ( | ) |
Constructor.
| nkGraphics::SubEntity::~SubEntity | ( | ) |
Destructor.
| Entity* nkGraphics::SubEntity::getParentEntity | ( | ) | const |
| Mesh* nkGraphics::SubEntity::getMesh | ( | ) | const |
| BoundingBox* nkGraphics::SubEntity::getBounds | ( | ) | const |
| void nkGraphics::SubEntity::setParentEntity | ( | Entity * | ent | ) |
Sets the parent entity.
| ent | The entity to set. |
| void nkGraphics::SubEntity::setMesh | ( | Mesh * | mesh | ) |
Sets the mesh attached to the sub entity.
| mesh | The mesh to use. |
| void nkGraphics::SubEntity::setDirtyNodeTransform | ( | bool | value | ) |
Sets whether the node transform is dirty or not. This will trigger bounds re-computation.
| value | Whether the transform is dirty (true) or not (false). |
| void nkGraphics::SubEntity::meshUpdatedBounds | ( | ) |
Updates the bounds when a mesh is changed. Used internally.
|
overridevirtual |
Basic exporting capabilities.
| rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
| rootNode | The tree to import from. |
Implements nkExport::Exportable.